import request from "@/API";

//获取所有诗词
export function reqGetPoemsAll(currentPage) {
  return request.get(`/poem/allPoems/${currentPage}`);
}
// 查询单个诗词
export function reqGetPoemSingle(pId) {
  return request.get(`/home/home_suggestion/poem/${pId}`);
}
//获取所有名句
export function reqGetLineAll() {
  return request.get(`/famous`);
}
//搜索诗词
export function reqSearchPoem(currentPage, searchString) {
  return request.get(
    `/poem/searchPoems/${currentPage}?searchString=${searchString}`
  );
}
